package fr.unice.tinytorrent.test;

import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.Naming;
import java.rmi.RemoteException;

import fr.unice.tinytorrent.TrackerImpl;

public class OldTest_TrackerImpl 
{

	public static void main(String[] args) throws RemoteException, MalformedURLException, AlreadyBoundException 
	{
		//Enregistrement d'un tracker dans le registry
		//
		java.rmi.registry.LocateRegistry.createRegistry(1099);
		
		TrackerImpl trackerImpl = new TrackerImpl();
		Naming.bind("tracker", trackerImpl);
		
		System.out.println("Test TrackerImpl - Enregistrement du tracker dans le registry OK");
	}
}
